package com.yxw.yx_hotel.dto.hotel_tenant;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel(value="HotelTenantUpdateDTO", description="修改客户管理dto")
public class HotelTenantUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "客户管理ID",required = true)
    private Long tenantId;

    @ApiModelProperty(value = "用户ID",required = true)
    private Long userId;

    @ApiModelProperty(value = "客户名称",required = true)
    private String tenantName;

    @ApiModelProperty(value = "联系人名称",required = true)
    private String userName;

    @ApiModelProperty(value = "联系电话",required = true)
    private String phone;

    @ApiModelProperty(value = "登录账号",required = true)
    private String userNum;

    @ApiModelProperty(value = "登录密码",required = true)
    private String password;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开始时间",required = true)
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "结束时间",required = true)
    private Date endTime;

    @ApiModelProperty("账号状态 0：禁用 1：启用")
    private Integer status;

    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty(value = "公司全称",required = true)
    private String wholeName;

    @ApiModelProperty("附件资源")
    private String resource;
}
